package com.yqRecite.service;

import com.yqRecite.entity.Admin;
import com.yqRecite.util.result.Result;

import java.util.List;

public interface AdminService {
    List<Admin> getAllAdmins();

    Admin getAdminById(int adminId);

    Result addAdmin(Admin admin);

    Result updateAdmin(Admin admin);

    int deleteAdmin(int adminId);

    Admin getAdminByName(String username);

    Result login(String username, String password);
}
